package cn.edu.seig.textbook.domain.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serial;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author day
 * @since 2024-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_purchases")
public class Purchases implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 采购ID
     */
    @TableId(value = "purchase_id", type = IdType.AUTO)
    private Integer purchaseId;

    /**
     * 教材ID (外键)
     */
    @TableField("textbook_id")
    private Integer textbookId;

    /**
     * 采购数量
     */
    @TableField("purchase_quantity")
    private Integer purchaseQuantity;

    /**
     * 总金额
     */
    @TableField("total_amount")
    private Double totalAmount;


}
